<?php
require_once('config.inc.php');//$pdo; $uid; ROOT
	//1.清空session数组
	$_SESSION = array();
	
	//2.删除cookeie中的session_id
	if(isset($_COOKIE[session_name()])){
		setCookie(session_name(),'',time()-3600,'/');
	}
	//3.销毁所有session资源
	session_destroy();
	
	$result['success'] = 1;
	$result['msg'] = '注消成功!';
	die(json_encode($result));

?>